package com.hbue.water.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


/**
 * @author yushu
 * @date 2021/12/25
 * @apiNate
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_history")
public class History {
    /**
     * 送水历史ID
     */
    @TableId(value = "hid")
    private Integer hid;
    /**
     * 关联送水工
     */
    private Worker worker;
    /**
     * 关联客户
     */
    private Customer customer;

    /**
     * 送水时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date sendWaterTime;
    /**
     * 送水数量
     */
    private Integer sendWaterCount;

}
